package cn.shop.cloud.controller;


import cn.shop.cloud.common.Result;
import cn.shop.cloud.domain.User;
import cn.shop.cloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.dc.pr.PRError;

/**
 * @program: xiangmu
 * @ClassName TestController
 * @description:
 * @author: 李尧坤
 * @create: 2024−12-14 09:45
 * @Version 1.0
 **/
@RestController
public class TestController {

    @Autowired
    private UserService userService;

    @RequestMapping("/find")
    public User find(){
        User user = userService.find(18698789339L);
        return user;
    }


    @RequestMapping("/find1")
    public Result<User> find1(){
        User user = userService.find(18698789339L);
        return Result.success(user);
    }
}
